home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / v9n03.arc / SCANSYS.BAT < prev    next >
DOS Batch File  |  1990-01-12  |  4KB  |  78 lines

  1. ECHO OFF
  2. ECHO ╔═════════════════════════════════════════════════════════════════════════╗
  3. ECHO ║ SCANsys will check all files on the current disk. It will compare them  ║
  4. ECHO ║ with check data recorded on the CHECK or CHECK-MT diskette.             ║
  5. ECHO ╟─────────────────────────────────────────────────────────────────────────╢
  6. ECHO ║ If FASTrun was executed first, files will be fetched from that disk,    ║
  7. ECHO ║ otherwise all programs and batch files will be loaded from the CHECK    ║
  8. ECHO ║ diskette.                                                               ║
  9. ECHO ╟─────────────────────────────────────────────────────────────────────────╢
  10. ECHO ║    PCDATA TOOLKIT 1.0 Copyright (C) 1990 Ziff Communications Co.        ║
  11. ECHO ║                    PC Magazine ■ Wolfgang Stiller                       ║
  12. ECHO ╚═════════════════════════════════════════════════════════════════════════╝
  13. IF "%1"=="" goto Help
  14. IF %1==? goto Help
  15. CD %1\
  16. IF NOT EXIST %1DELFILES.BAT GOTO  MissingMT
  17. IF "%PATH%"=="\))PCITK.TMP" GOTO Start
  18. IF NOT EXIST %1SCANRFDR.BAT GOTO  MissingADS
  19. IF NOT EXIST %1CFCOMPC.COM GOTO  MissingADS
  20. IF NOT EXIST %1XALL.COM GOTO  MissingADS
  21. GOTO Start0
  22. :Help
  23. ECHO ╔═════════════════════════════════════════════════════════════════════════╗
  24. ECHO ║ Syntax is   SCANSYS  a:                                                 ║
  25. ECHO ║     where "a:" is the drive containing a CHECK or CHECK-MT diskette.    ║
  26. ECHO ║     The current disk must be the one which is to be checked.            ║
  27. ECHO ╟─────────────────────────────────────────────────────────────────────────╢
  28. ECHO ║ SCANsys will check all files on the current disk.                       ║
  29. ECHO ║ It will compute validity check information and then compare it with the ║
  30. ECHO ║ information stored in the *.LOG files on the CHECK diskette.  All       ║
  31. ECHO ║ changes, deletions or additions since last run will be written to       ║
  32. ECHO ║ the report file ))SYS.LOG in the root directory of the current disk.    ║
  33. ECHO ╚═════════════════════════════════════════════════════════════════════════╝
  34. GOTO End
  35. :MissingMT
  36. ECHO ╔═════════════════════════════════════════════════════════════════════════╗
  37. ECHO ║ You MUST have a valid CHECK or CHECK-MT diskette in the drive which     ║
  38. ECHO ║ you specified with the %1 parameter.  File DELFILES.BAT is missing.     ║
  39. ECHO ╚═════════════════════════════════════════════════════════════════════════╝
  40. GOTO End
  41. :MissingADS
  42. ECHO ╔═════════════════════════════════════════════════════════════════════════╗
  43. ECHO ║ You MUST have a valid CHECK or CHECK-MT diskette in the drive which     ║
  44. ECHO ║ you specified with the %1 parameter.                                    ║
  45. ECHO ╟─────────────────────────────────────────────────────────────────────────╢
  46. ECHO ║ File SCANRFDR.BAT, CFCOMPC.COM or XALL.COM is missing.                  ║
  47. ECHO ╚═════════════════════════════════════════════════════════════════════════╝
  48. GOTO End
  49. :BadXall
  50. ECHO ╔═════════════════════════════════════════════════════════════════════════╗
  51. ECHO ║ Xall has failed.  Please check the prior error messages. Most likely    ║
  52. ECHO ║ your COMSPEC environment variable does not point to a good COMMAND.COM. ║
  53. ECHO ╚═════════════════════════════════════════════════════════════════════════╝
  54. GOTO End
  55. :   Enter here if we are NOT executing on a "FASTrun" system
  56. :Start0
  57. PATH=%1\
  58. :   Enter here if "FASTrun" has set PATH and COMSPEC
  59. :Start
  60. CD \
  61. CHKDSK/F
  62. Xall scanRFdr %1
  63. IF ERRORLEVEL 32 GOTO BadXall
  64. ECHO ╔════════════════════════════════════════════════════════════════╗
  65. ECHO ║             * * *   Checking is complete   * * *               ║
  66. ECHO ╟────────────────────────────────────────────────────────────────╢
  67. ECHO ║ To continue, make sure you have a bootable disk in drive %1.   ║
  68. ECHO ╚════════════════════════════════════════════════════════════════╝
  69. CD %1\
  70. IF NOT "%PATH%"=="\))PCITK.TMP" GOTO End
  71. ECHO  Now removing copied files from disk and restoring path.
  72. CD \))PCITK.TMP
  73. SET COMSPEC=%1\COMMAND.COM
  74. PATH=%1\
  75. CD %1\
  76. %1DELFILES
  77. :End
  78.